﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Projectmanagement.Utl;
using Projectmanagement.Entity;

namespace Projectmanagement.Models
{
    public class _Simultaneous : EntityBase
    {
        [Display(Name = "公司名称"), Required]
        public string CompanyName { get; set; }
        [Display(Name = "姓名"), Required]
        public string ContactName { get; set; }
        [Display(Name = "联系电话"), Required]
        public string ContaceMobile { get; set; }
        [Display(Name = "职位"), Required]
        public string ContactTitle { get; set; }
        [Display(Name = "上级"), Required]
        public string Superior { get; set; }

        [Display(Name = "报价（英译中）"), Required]
        public string Translatione { get; set; }
        [Display(Name = "报价（中译英）"), Required]
        public string TranslationePrice { get; set; }

        [Display(Name = "中英互译报价（半天）"), Required]
        public string InterTranslationeCEDay { get; set; }
        [Display(Name = "中英互译报价（全天）"), Required]
        public string InterTranslationeCEPrice { get; set; }

        [Display(Name = "中日互译报价（半天）"), Required]
        public string InterTranslationeCJDay { get; set; }
        [Display(Name = "中日互译报价（全天）"), Required]
        public string InterTranslationeCJPrice { get; set; }

        [Display(Name = "中韩互译报价（半天）"), Required]
        public string InterTranslationeCKDay { get; set; }
        [Display(Name = "中韩互译报价（全天）"), Required]
        public string InterTranslationeCKPrice { get; set; }

        [Display(Name = "中英互译报价（半天）"), Required]
        public string ConTranslationeCEDay { get; set; }
        [Display(Name = "中英互译报价（全天）"), Required]
        public string ConTranslationeCEPrice { get; set; }

        [Display(Name = "中日互译报价（半天）"), Required]
        public string ConTranslationeCJDay { get; set; }
        [Display(Name = "中日互译报价（全天）"), Required]
        public string ConTranslationeCJPrice { get; set; }

        [Display(Name = "中韩互译报价（半天）"), Required]
        public string ConTranslationeCKDay { get; set; }
        [Display(Name = "中韩互译报价（全天）"), Required]
        public string ConTranslationeCKPrice { get; set; }

        [Display(Name = "中英互译报价（半天）"), Required]
        public string KeepTranslationeCEDay { get; set; }
        [Display(Name = "中英互译报价（全天)"), Required]
        public string KeepTranslationeCEPrice { get; set; }

        [Display(Name = "中日互译报价（半天）"), Required]
        public string KeepTranslationeCJDay { get; set; }
        [Display(Name = "中日互译报价（全天）"), Required]
        public string KeepTranslationeCJPrice { get; set; }

        [Display(Name = "中韩互译报价（半天）"), Required]
        public string KeepTranslationeCKDay { get; set; }
        [Display(Name = "中韩互译报价（全天）"), Required]
        public string KeepTranslationeCKPrice { get; set; }

        [Display(Name = "城市"), Required]
        public int? City { get; set; }

        [Display(Name = "地址"), Required]
        public string Address { get; set; }

        public IEnumerable<SelectListItem> GetCitySelectListItems()
        {
            var selectList = CH.DB.Citys.ToList().Select(a => new SelectListItem
            {
                Text = a.Name,
                Value = a.ID.ToString()
            });
            return selectList;
        }

        [Display(Name = "同传主机系统报价"), Required]
        public string HostSystemPrice { get; set; }
        [Display(Name = "接收机报价"), Required]
        public string ReceiverPrice { get; set; }
        [Display(Name = "接收机类别"), Required]
        public string ReceiverType { get; set; }

    }
}